{smcl}
{txt}{sf}{ul off}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\J.PARK\Dropbox\Discrimination Project_for me\Organizational Diversity\2023 Version_Merging\FINAL\CFA_2013.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res} 8 Aug 2024, 13:19:42
{txt}
{com}. 
. 
. import delimited "C:\Users\J.PARK\Dropbox\DISCRIMINATION PROJECT\FEVS\FEVS_2010-2019\FEVS2013_PRDF.csv"
{res}{txt}(encoding automatically selected: ISO-8859-1)
{res}{text}(99 vars, 376,577 obs)

{com}. drop if q17=="X"
{txt}(16,155 observations deleted)

{com}. drop if q17==""
{txt}(2,733 observations deleted)

{com}. drop if q37=="X"
{txt}(16,043 observations deleted)

{com}. drop if q37==""
{txt}(8,728 observations deleted)

{com}. drop if q38=="X"
{txt}(15,349 observations deleted)

{com}. drop if q38==""
{txt}(2,886 observations deleted)

{com}. drop if q15=="X"
{txt}(2,816 observations deleted)

{com}. drop if q15==""
{txt}(1,138 observations deleted)

{com}. drop if q22=="X"
{txt}(11,726 observations deleted)

{com}. drop if q22==""
{txt}(2,095 observations deleted)

{com}. drop if q25=="X"
{txt}(6,737 observations deleted)

{com}. drop if q25==""
{txt}(1,381 observations deleted)

{com}. drop if q33=="X"
{txt}(5,868 observations deleted)

{com}. drop if q33==""
{txt}(2,449 observations deleted)

{com}. drop if q48==.
{txt}(2,970 observations deleted)

{com}. drop if q49==.
{txt}(998 observations deleted)

{com}. destring q17, replace
{txt}q17: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q37, replace
{txt}q37: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q38, replace
{txt}q38: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q15, replace
{txt}q15: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q22, replace
{txt}q22: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q25, replace
{txt}q25: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q33, replace
{txt}q33: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. drop if q55=="X"
{txt}(4,456 observations deleted)

{com}. drop if q55==""
{txt}(4,096 observations deleted)

{com}. drop if q45=="X"
{txt}(7,608 observations deleted)

{com}. drop if q45==""
{txt}(1,008 observations deleted)

{com}. drop if q34=="X"
{txt}(4,525 observations deleted)

{com}. drop if q34==""
{txt}(782 observations deleted)

{com}. destring q55, replace
{txt}q55: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q45, replace
{txt}q45: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q34, replace
{txt}q34: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. drop if dsuper=="X"
{txt}(0 observations deleted)

{com}. drop if dsuper==""
{txt}(12,162 observations deleted)

{com}. drop if dsex=="X"
{txt}(0 observations deleted)

{com}. drop if dsex==""
{txt}(5,172 observations deleted)

{com}. drop if dminority==.
{txt}(7,092 observations deleted)

{com}. gen minority = 0 if dminority==2
{txt}(78,364 missing values generated)

{com}. replace minority = 1 if dminority==1
{txt}(78,364 real changes made)

{com}. gen gender = 1 if dsex == "B"
{txt}(121,620 missing values generated)

{com}. replace gender = 0 if dsex == "A"
{txt}(121,620 real changes made)

{com}. gen supervisor = 1 if dsuper == "B" 
{txt}(176,842 missing values generated)

{com}. replace supervisor = 0 if dsuper == "A"
{txt}(176,842 real changes made)

{com}. svyset [pweight=postwt]

{txt}Sampling weights:{col 19}{res}postwt
             {txt}VCE:{col 19}{res}linearized
     {txt}Single unit:{col 19}{res}missing
        {txt}Strata 1:{col 19}<one>
 Sampling unit 1:{col 19}<observations>
           FPC 1:{col 19}<zero>
{p2colreset}{...}

{com}. 
. svy linearized : sem (JUSTICE -> DISTRIBUTIVE, ) (JUSTICE -> PROCEDURAL, ) (JUSTICE -> INTERPERSONAL, ) (DISTRIBUTIVE -> q22, ) (DISTRIBUTIVE -> q25, ) (DISTRIBUTIVE -> q33, ) (PROCEDURAL -> q15, ) (PROCEDURAL -> q17, ) (PROCEDURAL -> q37, ) (PROCEDURAL -> q38, )(INTERPERSONAL -> q48, ) (INTERPERSONAL -> q49, ), standardized latent(JUSTICE DISTRIBUTIVE PROCEDURAL INTERPERSONAL ) nocapslatent
{res}{txt}(running {bf:sem} on estimation sample)
{res}
{txt}{col 1}Survey: Structural equation model{col 52}{lalign 15:Number of obs}{col 67} = {res}{ralign 9:229,604}
{txt}{col 1}{lalign 16:Number of strata}{col 17} = {res}{ralign 7:1}{txt}{col 52}{lalign 15:Population size}{col 67} = {res}{ralign 9:1,120,408}
{txt}{col 1}{lalign 16:Number of PSUs}{col 17} = {res}{ralign 7:229,604}{txt}{col 52}{lalign 15:Design df}{col 67} = {res}{ralign 9:229,603}

{p 0 7}{space 1}{text:( 1)}{space 1} [q22]DISTRIBUTIVE = 1{p_end}
{p 0 7}{space 1}{text:( 2)}{space 1} [q15]PROCEDURAL = 1{p_end}
{p 0 7}{space 1}{text:( 3)}{space 1} [q48]INTERPERSONAL = 1{p_end}
{p 0 7}{space 1}{text:( 4)}{space 1} [DISTRIBUTIVE]JUSTICE = 1{p_end}
{txt}{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}  Linearized
{col 1}       Standardized{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural         {col 21}{txt}{c |}
{space 2}{col 3}DISTRIBUTIVE     {col 21}{c |}
{space 12}JUSTICE {c |}{col 21}{res}{space 2} .8388678{col 33}{space 2} .0019518{col 44}{space 1}  429.79{col 53}{space 3}0.000{col 61}{space 4} .8350422{col 74}{space 3} .8426933
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}PROCEDURAL       {col 21}{c |}
{space 12}JUSTICE {c |}{col 21}{res}{space 2}  .982768{col 33}{space 2} .0020002{col 44}{space 1}  491.33{col 53}{space 3}0.000{col 61}{space 4} .9788476{col 74}{space 3} .9866883
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}INTERPERSONAL    {col 21}{c |}
{space 12}JUSTICE {c |}{col 21}{res}{space 2} .7056316{col 33}{space 2} .0022427{col 44}{space 1}  314.63{col 53}{space 3}0.000{col 61}{space 4}  .701236{col 74}{space 3} .7100273
{txt}{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Measurement        {col 21}{txt}{c |}
{space 2}{col 3}q22              {col 21}{c |}
{space 7}DISTRIBUTIVE {c |}{col 21}{res}{space 2} .8425859{col 33}{space 2}    .0014{col 44}{space 1}  601.85{col 53}{space 3}0.000{col 61}{space 4} .8398419{col 74}{space 3} .8453299
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.381018{col 33}{space 2} .0048587{col 44}{space 1}  490.05{col 53}{space 3}0.000{col 61}{space 4} 2.371495{col 74}{space 3} 2.390541
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q25              {col 21}{c |}
{space 7}DISTRIBUTIVE {c |}{col 21}{res}{space 2} .8257008{col 33}{space 2} .0015248{col 44}{space 1}  541.52{col 53}{space 3}0.000{col 61}{space 4} .8227122{col 74}{space 3} .8286893
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.442083{col 33}{space 2} .0051624{col 44}{space 1}  473.05{col 53}{space 3}0.000{col 61}{space 4} 2.431965{col 74}{space 3} 2.452202
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q33              {col 21}{c |}
{space 7}DISTRIBUTIVE {c |}{col 21}{res}{space 2} .6973734{col 33}{space 2} .0019506{col 44}{space 1}  357.52{col 53}{space 3}0.000{col 61}{space 4} .6935504{col 74}{space 3} .7011965
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.140741{col 33}{space 2} .0038115{col 44}{space 1}  561.65{col 53}{space 3}0.000{col 61}{space 4}  2.13327{col 74}{space 3} 2.148211
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q15              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2} .6113333{col 33}{space 2} .0026608{col 44}{space 1}  229.75{col 53}{space 3}0.000{col 61}{space 4} .6061181{col 74}{space 3} .6165485
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 3.269724{col 33}{space 2} .0090982{col 44}{space 1}  359.38{col 53}{space 3}0.000{col 61}{space 4} 3.251892{col 74}{space 3} 3.287556
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q17              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2} .7493803{col 33}{space 2} .0019321{col 44}{space 1}  387.87{col 53}{space 3}0.000{col 61}{space 4} .7455935{col 74}{space 3}  .753167
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.968661{col 33}{space 2} .0076588{col 44}{space 1}  387.61{col 53}{space 3}0.000{col 61}{space 4}  2.95365{col 74}{space 3} 2.983672
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q37              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2} .8298705{col 33}{space 2} .0015998{col 44}{space 1}  518.74{col 53}{space 3}0.000{col 61}{space 4}  .826735{col 74}{space 3}  .833006
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.701035{col 33}{space 2} .0064261{col 44}{space 1}  420.32{col 53}{space 3}0.000{col 61}{space 4}  2.68844{col 74}{space 3}  2.71363
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q38              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2} .8129107{col 33}{space 2} .0017517{col 44}{space 1}  464.07{col 53}{space 3}0.000{col 61}{space 4} .8094774{col 74}{space 3} .8163439
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 3.292952{col 33}{space 2} .0093082{col 44}{space 1}  353.77{col 53}{space 3}0.000{col 61}{space 4} 3.274708{col 74}{space 3} 3.311196
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q48              {col 21}{c |}
{space 6}INTERPERSONAL {c |}{col 21}{res}{space 2} .9349457{col 33}{space 2} .0012071{col 44}{space 1}  774.55{col 53}{space 3}0.000{col 61}{space 4} .9325798{col 74}{space 3} .9373115
{txt}{space 14}_cons {c |}{col 21}{res}{space 2}  3.72002{col 33}{space 2} .0109139{col 44}{space 1}  340.85{col 53}{space 3}0.000{col 61}{space 4} 3.698629{col 74}{space 3} 3.741411
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q49              {col 21}{c |}
{space 6}INTERPERSONAL {c |}{col 21}{res}{space 2}  .913723{col 33}{space 2} .0013142{col 44}{space 1}  695.25{col 53}{space 3}0.000{col 61}{space 4} .9111471{col 74}{space 3} .9162989
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 4.013871{col 33}{space 2} .0128375{col 44}{space 1}  312.67{col 53}{space 3}0.000{col 61}{space 4} 3.988709{col 74}{space 3} 4.039032
{txt}{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}var(e.q22){c |}{col 21}{res}{space 2}  .290049{col 33}{space 2} .0023592{col 61}{space 4} .2854616{col 74}{space 3} .2947101
{txt}{space 10}var(e.q25){c |}{col 21}{res}{space 2} .3182182{col 33}{space 2}  .002518{col 61}{space 4}  .313321{col 74}{space 3}  .323192
{txt}{space 10}var(e.q33){c |}{col 21}{res}{space 2} .5136703{col 33}{space 2} .0027206{col 61}{space 4} .5083657{col 74}{space 3} .5190303
{txt}{space 10}var(e.q15){c |}{col 21}{res}{space 2} .6262716{col 33}{space 2} .0032533{col 61}{space 4} .6199275{col 74}{space 3} .6326806
{txt}{space 10}var(e.q17){c |}{col 21}{res}{space 2} .4384292{col 33}{space 2} .0028957{col 61}{space 4} .4327903{col 74}{space 3} .4441416
{txt}{space 10}var(e.q37){c |}{col 21}{res}{space 2}  .311315{col 33}{space 2} .0026552{col 61}{space 4} .3061541{col 74}{space 3} .3165629
{txt}{space 10}var(e.q38){c |}{col 21}{res}{space 2} .3391762{col 33}{space 2} .0028479{col 61}{space 4} .3336401{col 74}{space 3} .3448043
{txt}{space 10}var(e.q48){c |}{col 21}{res}{space 2} .1258766{col 33}{space 2} .0022571{col 61}{space 4} .1215295{col 74}{space 3} .1303791
{txt}{space 10}var(e.q49){c |}{col 21}{res}{space 2} .1651103{col 33}{space 2} .0024017{col 61}{space 4} .1604694{col 74}{space 3} .1698853
{txt}{space 1}var(e.DISTRIBUTIVE){c |}{col 21}{res}{space 2} .2963009{col 33}{space 2} .0032746{col 61}{space 4} .2899517{col 74}{space 3} .3027891
{txt}{space 3}var(e.PROCEDURAL){c |}{col 21}{res}{space 2} .0341671{col 33}{space 2} .0039315{col 61}{space 4} .0272686{col 74}{space 3} .0428108
{txt}var(e.INTERPERSONAL){c |}{col 21}{res}{space 2}  .502084{col 33}{space 2}  .003165{col 61}{space 4} .4959188{col 74}{space 3} .5083259
{txt}{space 8}var(JUSTICE){c |}{col 21}{res}{space 2}        1{col 33}{space 2}        .{col 61}{space 4}        .{col 74}{space 3}        .
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. estat gof, stats(all)
{res}
{txt}{hline 21}{c TT}{hline 54}
{lalign 21:Fit statistic}{c |}      Value   Description
{hline 21}{c +}{hline 54}
{lalign 21:Size of residuals}{c |}
{ralign 20:SRMR} {c |} {res}{ralign 10:     0.041}{txt}   Standardized root mean squared residual
{ralign 20:CD} {c |} {res}{ralign 10:     0.969}{txt}   Coefficient of determination
{hline 21}{c BT}{hline 54}
{p 0 2 2 75}Note: model was fit with{txt} svy: prefix; only stats(residuals) valid.{p_end}

{com}. 
. predict justice, latent(JUSTICE)
{res}{txt}
{com}. 
. svy linearized : sem (DIVERSITY -> q34, ) (DIVERSITY -> q45, ) (DIVERSITY -> q55, ), standardized latent(DIVERSITY) nocapslatent
{res}{txt}(running {bf:sem} on estimation sample)
{res}
{txt}{col 1}Survey: Structural equation model{col 52}{lalign 15:Number of obs}{col 67} = {res}{ralign 9:229,604}
{txt}{col 1}{lalign 16:Number of strata}{col 17} = {res}{ralign 7:1}{txt}{col 52}{lalign 15:Population size}{col 67} = {res}{ralign 9:1,120,408}
{txt}{col 1}{lalign 16:Number of PSUs}{col 17} = {res}{ralign 7:229,604}{txt}{col 52}{lalign 15:Design df}{col 67} = {res}{ralign 9:229,603}

{p 0 7}{space 1}{text:( 1)}{space 1} [q34]DIVERSITY = 1{p_end}
{txt}{hline 14}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 15}{c |}{col 27}  Linearized
{col 1} Standardized{col 15}{c |} Coefficient{col 27}  std. err.{col 39}      t{col 47}   P>|t|{col 55}     [95% con{col 68}f. interval]
{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Measurement  {col 15}{txt}{c |}
{space 2}{col 3}q34        {col 15}{c |}
{space 4}DIVERSITY {c |}{col 15}{res}{space 2} .6708106{col 27}{space 2}  .002728{col 38}{space 1}  245.90{col 47}{space 3}0.000{col 55}{space 4} .6654639{col 68}{space 3} .6761574
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} 3.333189{col 27}{space 2} .0089045{col 38}{space 1}  374.33{col 47}{space 3}0.000{col 55}{space 4} 3.315736{col 68}{space 3} 3.350642
{space 2}{txt}{hline 12}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q45        {col 15}{c |}
{space 4}DIVERSITY {c |}{col 15}{res}{space 2}  .762662{col 27}{space 2} .0025588{col 38}{space 1}  298.06{col 47}{space 3}0.000{col 55}{space 4} .7576469{col 68}{space 3} .7676772
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} 3.548955{col 27}{space 2} .0099973{col 38}{space 1}  354.99{col 47}{space 3}0.000{col 55}{space 4} 3.529361{col 68}{space 3}  3.56855
{space 2}{txt}{hline 12}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q55        {col 15}{c |}
{space 4}DIVERSITY {c |}{col 15}{res}{space 2} .8171331{col 27}{space 2} .0024049{col 38}{space 1}  339.78{col 47}{space 3}0.000{col 55}{space 4} .8124196{col 68}{space 3} .8218466
{txt}{space 8}_cons {c |}{col 15}{res}{space 2}  3.40812{col 27}{space 2} .0095322{col 38}{space 1}  357.54{col 47}{space 3}0.000{col 55}{space 4} 3.389437{col 68}{space 3} 3.426803
{txt}{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}var(e.q34){c |}{col 15}{res}{space 2} .5500131{col 27}{space 2} .0036599{col 55}{space 4} .5428864{col 68}{space 3} .5572334
{txt}{space 4}var(e.q45){c |}{col 15}{res}{space 2} .4183466{col 27}{space 2}  .003903{col 55}{space 4} .4107664{col 68}{space 3} .4260667
{txt}{space 4}var(e.q55){c |}{col 15}{res}{space 2} .3322935{col 27}{space 2} .0039302{col 55}{space 4}  .324679{col 68}{space 3} .3400866
{txt}var(DIVERSITY){c |}{col 15}{res}{space 2}        1{col 27}{space 2}        .{col 55}{space 4}        .{col 68}{space 3}        .
{txt}{hline 14}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. estat gof, stats(all)
{res}
{txt}{hline 21}{c TT}{hline 54}
{lalign 21:Fit statistic}{c |}      Value   Description
{hline 21}{c +}{hline 54}
{lalign 21:Size of residuals}{c |}
{ralign 20:SRMR} {c |} {res}{ralign 10:     0.000}{txt}   Standardized root mean squared residual
{ralign 20:CD} {c |} {res}{ralign 10:     0.808}{txt}   Coefficient of determination
{hline 21}{c BT}{hline 54}
{p 0 2 2 75}Note: model was fit with{txt} svy: prefix; only stats(residuals) valid.{p_end}

{com}. 
. predict diversity, latent(DIVERSITY)
{res}{txt}
{com}. 
. keep if agency =="AM" | agency =="IB" | agency =="FQ" | agency =="ED" | agency =="DN" | agency =="HU" | agency =="ST" | agency =="EP" | agency =="EE" | agency =="FC" | agency =="DR" | agency =="FT" | agency =="GS" | agency =="NN" | agency =="NQ" | agency =="NL" | agency =="NF" | agency =="NU" | agency =="OM" | agency =="BG" | agency =="SE" | agency =="SB" | agency =="SZ" | plevel1 =="DD34" | plevel1 =="DD10" | plevel1 =="DD63" | plevel1 =="DD35" | plevel1 =="DD04" | plevel1 =="DD07" | plevel1 =="DD27" | plevel1 =="DD26" | plevel1 =="DD60" | plevel2 =="AG1001" | plevel2 =="AG0101" | plevel2 =="AG0401" | plevel2 =="AG0501" | plevel2 =="AG0502" | plevel1 =="CM03" | plevel1 =="CM06" | plevel1 =="CM08" | plevel1 =="CM09" | plevel1 =="CM14" | plevel1 =="HE02" | plevel1 =="HE04" | plevel1 =="HE05" | plevel1 =="HE06" | plevel1 =="HE07" | plevel1 =="HE08" | plevel1 =="HE09" | plevel1 =="HE10" | plevel1 =="HS04" | plevel1 =="HS05" | plevel1 =="HS14" | plevel1 =="HS01" | plevel1 =="HS03" | plevel1 =="HS02" | plevel1 =="HS06" | plevel1 =="HS12" | plevel1 =="HS10" | plevel1 =="DJ15" | plevel1 =="DJ03" | plevel1 =="DJEA" | plevel1 =="DJ09" | plevel1 =="DJ02" | plevel1 =="DJ08" | plevel1 =="DJ11" | plevel1 =="DL03" | plevel1 =="DL02" | plevel1 =="DL10"| plevel1 =="DL09" | plevel1 =="DL04" | plevel1 =="DL06" | plevel1 =="DL05" |plevel1 =="DL11" |agency =="AF" | agency =="AR" | plevel1 =="IN03" | plevel1 =="IN01" | plevel1 =="IN02" | plevel1 =="IN07" | plevel1 =="IN05" | plevel1 =="IN06" | plevel1 =="IN14" | agency =="NV" | plevel1 =="TRAI" | plevel1 =="TR91" | plevel1 =="TR93" | plevel1 =="TRAJ" | plevel1 =="TR76" | plevel1 =="TD02" | plevel1 =="TD03" | plevel1 =="TD04" | plevel1 =="VA07" | plevel1 =="VA06" | plevel1 =="VA02" | plevel1 =="DDWH"
{txt}(17,304 observations deleted)

{com}. 
. svy linearized : sem (JUSTICE -> DISTRIBUTIVE, ) (JUSTICE -> PROCEDURAL, ) (JUSTICE -> INTERPERSONAL, ) (DISTRIBUTIVE -> q22, ) (DISTRIBUTIVE -> q25, ) (DISTRIBUTIVE -> q33, ) (PROCEDURAL -> q15, ) (PROCEDURAL -> q17, ) (PROCEDURAL -> q37, ) (PROCEDURAL -> q38, )(INTERPERSONAL -> q48, ) (INTERPERSONAL -> q49, ), standardized latent(JUSTICE DISTRIBUTIVE PROCEDURAL INTERPERSONAL ) nocapslatent
{res}{txt}(running {bf:sem} on estimation sample)
{res}
{txt}{col 1}Survey: Structural equation model{col 52}{lalign 15:Number of obs}{col 67} = {res}{ralign 9:212,300}
{txt}{col 1}{lalign 16:Number of strata}{col 17} = {res}{ralign 7:1}{txt}{col 52}{lalign 15:Population size}{col 67} = {res}{ralign 9:1,073,265}
{txt}{col 1}{lalign 16:Number of PSUs}{col 17} = {res}{ralign 7:212,300}{txt}{col 52}{lalign 15:Design df}{col 67} = {res}{ralign 9:212,299}

{p 0 7}{space 1}{text:( 1)}{space 1} [q22]DISTRIBUTIVE = 1{p_end}
{p 0 7}{space 1}{text:( 2)}{space 1} [q15]PROCEDURAL = 1{p_end}
{p 0 7}{space 1}{text:( 3)}{space 1} [q48]INTERPERSONAL = 1{p_end}
{p 0 7}{space 1}{text:( 4)}{space 1} [DISTRIBUTIVE]JUSTICE = 1{p_end}
{txt}{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}  Linearized
{col 1}       Standardized{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural         {col 21}{txt}{c |}
{space 2}{col 3}DISTRIBUTIVE     {col 21}{c |}
{space 12}JUSTICE {c |}{col 21}{res}{space 2} .8380304{col 33}{space 2} .0020144{col 44}{space 1}  416.02{col 53}{space 3}0.000{col 61}{space 4} .8340822{col 74}{space 3} .8419786
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}PROCEDURAL       {col 21}{c |}
{space 12}JUSTICE {c |}{col 21}{res}{space 2} .9832742{col 33}{space 2} .0020714{col 44}{space 1}  474.70{col 53}{space 3}0.000{col 61}{space 4} .9792143{col 74}{space 3}  .987334
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}INTERPERSONAL    {col 21}{c |}
{space 12}JUSTICE {c |}{col 21}{res}{space 2} .7052461{col 33}{space 2} .0023212{col 44}{space 1}  303.83{col 53}{space 3}0.000{col 61}{space 4} .7006967{col 74}{space 3} .7097956
{txt}{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Measurement        {col 21}{txt}{c |}
{space 2}{col 3}q22              {col 21}{c |}
{space 7}DISTRIBUTIVE {c |}{col 21}{res}{space 2} .8420521{col 33}{space 2} .0014499{col 44}{space 1}  580.76{col 53}{space 3}0.000{col 61}{space 4} .8392103{col 74}{space 3} .8448938
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.379257{col 33}{space 2} .0050046{col 44}{space 1}  475.41{col 53}{space 3}0.000{col 61}{space 4} 2.369448{col 74}{space 3} 2.389065
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q25              {col 21}{c |}
{space 7}DISTRIBUTIVE {c |}{col 21}{res}{space 2} .8255809{col 33}{space 2} .0015788{col 44}{space 1}  522.91{col 53}{space 3}0.000{col 61}{space 4} .8224865{col 74}{space 3} .8286754
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.439762{col 33}{space 2} .0053184{col 44}{space 1}  458.74{col 53}{space 3}0.000{col 61}{space 4} 2.429338{col 74}{space 3} 2.450186
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q33              {col 21}{c |}
{space 7}DISTRIBUTIVE {c |}{col 21}{res}{space 2} .6970771{col 33}{space 2} .0020179{col 44}{space 1}  345.45{col 53}{space 3}0.000{col 61}{space 4} .6931222{col 74}{space 3} .7010321
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.138077{col 33}{space 2} .0039247{col 44}{space 1}  544.77{col 53}{space 3}0.000{col 61}{space 4} 2.130385{col 74}{space 3}  2.14577
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q15              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2} .6102871{col 33}{space 2} .0027542{col 44}{space 1}  221.58{col 53}{space 3}0.000{col 61}{space 4} .6048888{col 74}{space 3} .6156853
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 3.269918{col 33}{space 2} .0093947{col 44}{space 1}  348.06{col 53}{space 3}0.000{col 61}{space 4} 3.251504{col 74}{space 3} 3.288331
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q17              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2}  .748245{col 33}{space 2} .0020023{col 44}{space 1}  373.69{col 53}{space 3}0.000{col 61}{space 4} .7443205{col 74}{space 3} .7521696
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.971763{col 33}{space 2} .0079217{col 44}{space 1}  375.14{col 53}{space 3}0.000{col 61}{space 4} 2.956236{col 74}{space 3} 2.987289
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q37              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2} .8296082{col 33}{space 2} .0016574{col 44}{space 1}  500.56{col 53}{space 3}0.000{col 61}{space 4} .8263599{col 74}{space 3} .8328566
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.699863{col 33}{space 2} .0066313{col 44}{space 1}  407.14{col 53}{space 3}0.000{col 61}{space 4} 2.686866{col 74}{space 3}  2.71286
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q38              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2} .8118605{col 33}{space 2} .0018172{col 44}{space 1}  446.77{col 53}{space 3}0.000{col 61}{space 4} .8082988{col 74}{space 3} .8154221
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 3.295914{col 33}{space 2} .0096256{col 44}{space 1}  342.41{col 53}{space 3}0.000{col 61}{space 4} 3.277048{col 74}{space 3}  3.31478
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q48              {col 21}{c |}
{space 6}INTERPERSONAL {c |}{col 21}{res}{space 2} .9347542{col 33}{space 2}  .001249{col 44}{space 1}  748.41{col 53}{space 3}0.000{col 61}{space 4} .9323062{col 74}{space 3} .9372022
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 3.718951{col 33}{space 2} .0112539{col 44}{space 1}  330.46{col 53}{space 3}0.000{col 61}{space 4} 3.696894{col 74}{space 3} 3.741008
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q49              {col 21}{c |}
{space 6}INTERPERSONAL {c |}{col 21}{res}{space 2} .9133231{col 33}{space 2} .0013584{col 44}{space 1}  672.34{col 53}{space 3}0.000{col 61}{space 4} .9106606{col 74}{space 3} .9159856
{txt}{space 14}_cons {c |}{col 21}{res}{space 2}  4.01663{col 33}{space 2} .0132597{col 44}{space 1}  302.92{col 53}{space 3}0.000{col 61}{space 4} 3.990641{col 74}{space 3} 4.042619
{txt}{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}var(e.q22){c |}{col 21}{res}{space 2} .2909483{col 33}{space 2} .0024418{col 61}{space 4} .2862016{col 74}{space 3} .2957737
{txt}{space 10}var(e.q25){c |}{col 21}{res}{space 2} .3184162{col 33}{space 2} .0026069{col 61}{space 4} .3133475{col 74}{space 3} .3235668
{txt}{space 10}var(e.q33){c |}{col 21}{res}{space 2} .5140835{col 33}{space 2} .0028132{col 61}{space 4} .5085991{col 74}{space 3}  .519627
{txt}{space 10}var(e.q15){c |}{col 21}{res}{space 2} .6275497{col 33}{space 2} .0033618{col 61}{space 4} .6209952{col 74}{space 3} .6341734
{txt}{space 10}var(e.q17){c |}{col 21}{res}{space 2} .4401294{col 33}{space 2} .0029965{col 61}{space 4} .4342954{col 74}{space 3} .4460417
{txt}{space 10}var(e.q37){c |}{col 21}{res}{space 2} .3117502{col 33}{space 2} .0027499{col 61}{space 4} .3064067{col 74}{space 3} .3171868
{txt}{space 10}var(e.q38){c |}{col 21}{res}{space 2} .3408826{col 33}{space 2} .0029506{col 61}{space 4} .3351483{col 74}{space 3}  .346715
{txt}{space 10}var(e.q48){c |}{col 21}{res}{space 2} .1262345{col 33}{space 2}  .002335{col 61}{space 4} .1217399{col 74}{space 3}  .130895
{txt}{space 10}var(e.q49){c |}{col 21}{res}{space 2} .1658409{col 33}{space 2} .0024814{col 61}{space 4} .1610481{col 74}{space 3} .1707763
{txt}{space 1}var(e.DISTRIBUTIVE){c |}{col 21}{res}{space 2}  .297705{col 33}{space 2} .0033762{col 61}{space 4} .2911607{col 74}{space 3} .3043965
{txt}{space 3}var(e.PROCEDURAL){c |}{col 21}{res}{space 2} .0331719{col 33}{space 2} .0040735{col 61}{space 4} .0260762{col 74}{space 3} .0421986
{txt}var(e.INTERPERSONAL){c |}{col 21}{res}{space 2} .5026279{col 33}{space 2}  .003274{col 61}{space 4} .4962517{col 74}{space 3}  .509086
{txt}{space 8}var(JUSTICE){c |}{col 21}{res}{space 2}        1{col 33}{space 2}        .{col 61}{space 4}        .{col 74}{space 3}        .
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. estat gof, stats(all)
{res}
{txt}{hline 21}{c TT}{hline 54}
{lalign 21:Fit statistic}{c |}      Value   Description
{hline 21}{c +}{hline 54}
{lalign 21:Size of residuals}{c |}
{ralign 20:SRMR} {c |} {res}{ralign 10:     0.041}{txt}   Standardized root mean squared residual
{ralign 20:CD} {c |} {res}{ralign 10:     0.970}{txt}   Coefficient of determination
{hline 21}{c BT}{hline 54}
{p 0 2 2 75}Note: model was fit with{txt} svy: prefix; only stats(residuals) valid.{p_end}

{com}. 
. predict justice2, latent (JUSTICE)
{res}{txt}
{com}. 
. svy linearized : sem (DIVERSITY -> q34, ) (DIVERSITY -> q45, ) (DIVERSITY -> q55, ), standardized latent(DIVERSITY) nocapslatent
{res}{txt}(running {bf:sem} on estimation sample)
{res}
{txt}{col 1}Survey: Structural equation model{col 52}{lalign 15:Number of obs}{col 67} = {res}{ralign 9:212,300}
{txt}{col 1}{lalign 16:Number of strata}{col 17} = {res}{ralign 7:1}{txt}{col 52}{lalign 15:Population size}{col 67} = {res}{ralign 9:1,073,265}
{txt}{col 1}{lalign 16:Number of PSUs}{col 17} = {res}{ralign 7:212,300}{txt}{col 52}{lalign 15:Design df}{col 67} = {res}{ralign 9:212,299}

{p 0 7}{space 1}{text:( 1)}{space 1} [q34]DIVERSITY = 1{p_end}
{txt}{hline 14}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 15}{c |}{col 27}  Linearized
{col 1} Standardized{col 15}{c |} Coefficient{col 27}  std. err.{col 39}      t{col 47}   P>|t|{col 55}     [95% con{col 68}f. interval]
{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Measurement  {col 15}{txt}{c |}
{space 2}{col 3}q34        {col 15}{c |}
{space 4}DIVERSITY {c |}{col 15}{res}{space 2} .6690088{col 27}{space 2} .0028255{col 38}{space 1}  236.77{col 47}{space 3}0.000{col 55}{space 4} .6634709{col 68}{space 3} .6745468
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} 3.335924{col 27}{space 2} .0092085{col 38}{space 1}  362.26{col 47}{space 3}0.000{col 55}{space 4} 3.317875{col 68}{space 3} 3.353972
{space 2}{txt}{hline 12}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q45        {col 15}{c |}
{space 4}DIVERSITY {c |}{col 15}{res}{space 2} .7633561{col 27}{space 2} .0026461{col 38}{space 1}  288.48{col 47}{space 3}0.000{col 55}{space 4} .7581698{col 68}{space 3} .7685425
{txt}{space 8}_cons {c |}{col 15}{res}{space 2}  3.54805{col 27}{space 2}  .010314{col 38}{space 1}  344.00{col 47}{space 3}0.000{col 55}{space 4} 3.527835{col 68}{space 3} 3.568265
{space 2}{txt}{hline 12}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q55        {col 15}{c |}
{space 4}DIVERSITY {c |}{col 15}{res}{space 2} .8172451{col 27}{space 2} .0024895{col 38}{space 1}  328.28{col 47}{space 3}0.000{col 55}{space 4} .8123658{col 68}{space 3} .8221244
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} 3.411959{col 27}{space 2} .0098676{col 38}{space 1}  345.77{col 47}{space 3}0.000{col 55}{space 4} 3.392618{col 68}{space 3} 3.431299
{txt}{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}var(e.q34){c |}{col 15}{res}{space 2} .5524272{col 27}{space 2} .0037806{col 55}{space 4} .5450668{col 68}{space 3}  .559887
{txt}{space 4}var(e.q45){c |}{col 15}{res}{space 2} .4172874{col 27}{space 2} .0040399{col 55}{space 4} .4094439{col 68}{space 3} .4252811
{txt}{space 4}var(e.q55){c |}{col 15}{res}{space 2} .3321105{col 27}{space 2}  .004069{col 55}{space 4} .3242303{col 68}{space 3} .3401821
{txt}var(DIVERSITY){c |}{col 15}{res}{space 2}        1{col 27}{space 2}        .{col 55}{space 4}        .{col 68}{space 3}        .
{txt}{hline 14}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. estat gof, stats(all)
{res}
{txt}{hline 21}{c TT}{hline 54}
{lalign 21:Fit statistic}{c |}      Value   Description
{hline 21}{c +}{hline 54}
{lalign 21:Size of residuals}{c |}
{ralign 20:SRMR} {c |} {res}{ralign 10:     0.000}{txt}   Standardized root mean squared residual
{ralign 20:CD} {c |} {res}{ralign 10:     0.808}{txt}   Coefficient of determination
{hline 21}{c BT}{hline 54}
{p 0 2 2 75}Note: model was fit with{txt} svy: prefix; only stats(residuals) valid.{p_end}

{com}. 
. predict diversity2, latent (DIVERSITY)
{res}{txt}
{com}. 
. sum justice, detail

                   {txt}Factor score (JUSTICE)
{hline 61}
      Percentiles      Smallest
 1%    {res}-2.065408      -2.180504
{txt} 5%    {res}-1.552036      -2.180504
{txt}10%    {res}-1.115322      -2.180504       {txt}Obs         {res}    212,300
{txt}25%    {res}-.4148527      -2.180504       {txt}Sum of wgt. {res}    212,300

{txt}50%    {res} .1848386                      {txt}Mean          {res} .0499536
                        {txt}Largest       Std. dev.     {res} .8013909
{txt}75%    {res} .5995176       1.350798
{txt}90%    {res} 1.042525       1.350798       {txt}Variance      {res} .6422274
{txt}95%    {res} 1.231931       1.350798       {txt}Skewness      {res}-.6516602
{txt}99%    {res} 1.350798       1.350798       {txt}Kurtosis      {res} 2.995713
{txt}
{com}. 
. sum justice2, detail

                   {txt}Factor score (JUSTICE)
{hline 61}
      Percentiles      Smallest
 1%    {res}-2.060712      -2.175332
{txt} 5%    {res}-1.547179      -2.175332
{txt}10%    {res}-1.112365      -2.175332       {txt}Obs         {res}    212,300
{txt}25%    {res} -.412621      -2.175332       {txt}Sum of wgt. {res}    212,300

{txt}50%    {res} .1865792                      {txt}Mean          {res} .0517989
                        {txt}Largest       Std. dev.     {res}  .800232
{txt}75%    {res} .5998147       1.350089
{txt}90%    {res} 1.043838       1.350089       {txt}Variance      {res} .6403712
{txt}95%    {res}  1.23204       1.350089       {txt}Skewness      {res}-.6520366
{txt}99%    {res} 1.350089       1.350089       {txt}Kurtosis      {res}   2.9958
{txt}
{com}. 
. sum diversity, detail

                  {txt}Factor score (DIVERSITY)
{hline 61}
      Percentiles      Smallest
 1%    {res}-1.854501      -1.854501
{txt} 5%    {res}-1.227973      -1.854501
{txt}10%    {res}-.7630793      -1.854501       {txt}Obs         {res}    212,300
{txt}25%    {res}-.2926945      -1.854501       {txt}Sum of wgt. {res}    212,300

{txt}50%    {res} .1728509                      {txt}Mean          {res} .0380928
                        {txt}Largest       Std. dev.     {res} .6310538
{txt}75%    {res}  .485789       .9555219
{txt}90%    {res}  .798727       .9555219       {txt}Variance      {res} .3982288
{txt}95%    {res} .9555219       .9555219       {txt}Skewness      {res}-.8315262
{txt}99%    {res} .9555219       .9555219       {txt}Kurtosis      {res} 3.647038
{txt}
{com}. 
. sum diversity2, detail

                  {txt}Factor score (DIVERSITY)
{hline 61}
      Percentiles      Smallest
 1%    {res}-1.847703      -1.847703
{txt} 5%    {res}-1.224861      -1.847703
{txt}10%    {res}-.7592567      -1.847703       {txt}Obs         {res}    212,300
{txt}25%    {res}-.2916931      -1.847703       {txt}Sum of wgt. {res}    212,300

{txt}50%    {res} .1739111                      {txt}Mean          {res} .0393689
                        {txt}Largest       Std. dev.     {res} .6292582
{txt}75%    {res} .4861959       .9537596
{txt}90%    {res} .7984807       .9537596       {txt}Variance      {res} .3959659
{txt}95%    {res} .9537596       .9537596       {txt}Skewness      {res}-.8318536
{txt}99%    {res} .9537596       .9537596       {txt}Kurtosis      {res} 3.647029
{txt}
{com}. 
. corr justice justice2
{txt}(obs=212,300)

             {c |}  justice justice2
{hline 13}{c +}{hline 18}
     justice {c |}{res}   1.0000
    {txt}justice2 {c |}{res}   1.0000   1.0000

{txt}
{com}. 
. corr diversity diversity2 
{txt}(obs=212,300)

             {c |} divers~y divers~2
{hline 13}{c +}{hline 18}
   diversity {c |}{res}   1.0000
  {txt}diversity2 {c |}{res}   1.0000   1.0000

{txt}
{com}. 
. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\J.PARK\Dropbox\Discrimination Project_for me\Organizational Diversity\2023 Version_Merging\FINAL\CFA_2013.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res} 8 Aug 2024, 13:20:31
{txt}{.-}
{smcl}
{txt}{sf}{ul off}